// 指挥者类
class Director {
    private CarBuilder carBuilder;

    public void setCarBuilder(CarBuilder carBuilder) {
        this.carBuilder = carBuilder;
    }

    public Car construct() {
        carBuilder.buildEngine();
        carBuilder.buildWheels();
        carBuilder.buildSeats();
        return carBuilder.getResult();
    }
}
